<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
	<form action="${contextPath }/admin/role/delete.do" method="post">
<table width="100%">
	<tbody>
		<tr>
			<td><input type='checkbox' name="check"/></td><td>编号</td><td>角色名</td><td>操作</td>
		</tr>
		<c:if test="${obj!=null}">
			<c:forEach items="${obj}" var="role">
				<tr>
					<td><input value="${role.id }" name="ids" type="checkbox"/></td>
					<td>${role.id}</td>
					<td>${role.name}</td>
					<td><a href="${contextPath}/admin/role/preupdate.do?roleid=${role.id}">编辑</a></td>
				</tr>				
			</c:forEach>
		</c:if>
		<tr>
			<td></td><td><a href="${contextPath}/admin/role/preadd.do">添加记录</a></td><td><button type="submit" onclick="return confirm('确认要删除吗');">删除记录</button></td>
		</tr>
	</tbody>
</table>
	</form>